package com.study.controller.FDcontroller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.study.model.pojo.FDpojo.PurchasePrepayment;
import com.study.service.FDservice.PurchasePrepaymentServices;

@Controller
public class PurchasePrepaymentController {
	@Autowired
	PurchasePrepaymentServices ppps;	
	//访问地址：http://localhost:8089/all_PurchasePrepayment 
	@RequestMapping("/all_PurchasePrepayment")
	@ResponseBody  //将List集合以JSON数组的形式返回，页面不跳转
	/**
	  *  获取所有预付款信息
	 * @return
	 */
	public List<PurchasePrepayment> allPurchasePrepayment(){ 
		System.out.println("123444");
		return ppps.selectAll();
	}
}
